package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.ShopDetailBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.SHOP_DETAIL)
public class ConnShopDetail extends BaseAsyPost<ShopDetailBean> {

    public String goods_id;
    public String member_id;

    public int page;

    public ConnShopDetail(String goods_id, String member_id, int page, AsyCallBack<ShopDetailBean> asyCallBack) {
        super(asyCallBack);
        this.goods_id = goods_id;
        this.member_id = member_id;
        this.page = page;
    }

    @Override
    protected ShopDetailBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");
        Gson gson = new Gson();
        ShopDetailBean loginBean = new ShopDetailBean();
        loginBean = gson.fromJson(object.toString(), ShopDetailBean.class);
        return loginBean;

    }
}



